﻿namespace XYAC.Framework.MonitorTireMaterialManual.DataExporter
{

    public static class clsDBManager
    {
        // Fields
        private static DatabaseType m_DbType = DatabaseType.ACCESS;

        // Methods
        public static clsComDB CreateComDB()
        {
            ReadConfig();
            //switch (m_DbType)
            //{
            //    case DatabaseType.SQLSERVER:
            //        return new clsSQLServer();

            //    case DatabaseType.SQLSERVERFILE:
            //        return new clsSQLServerFile();
            //}
            //return new clsAccess();
            return null;
        }

        public static clsComDB CreateComDB(DatabaseType type)
        {
            return null;

        }

        public static void ReadConfig()
        {

        }

        // Nested Types
        public enum DatabaseType
        {
            ACCESS = 1,
            SQLSERVER = 2,
            SQLSERVERFILE = 3
        }
    }


}
